package com.wokeMy.view.http;

import com.bean.Banner;
import com.bean.BaseResponse;

import java.util.List;

import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2018/3/22 0022.
 */

public interface RestService {
    //轮播图广告
    @GET("index.php?g=api&m=Ads&a=adsList")
    Call<BaseResponse<List<Banner>>> getManagerData(@Query("oem_id") int oem_id);

    @Multipart
    @POST("index.php?g=Api&m=Turui&a=upload_idCard")
    Call<BaseResponse<String>> upload(@Part("description") RequestBody description, @Part MultipartBody.Part file);

}
